*** Keywords ***
登录
    [Arguments]    ${url}    ${brower}
    Open Browser    ${url}    ${brower}

输入文本
    [Arguments]    ${xpath}    ${username}
    sleep    1
    Input Text    ${xpath}    ${username}

点击
    [Arguments]    ${xpath}
   # sleep    1
    定期元素操作    Click Element    ${xpath}

定期元素操作
    [Arguments]    ${action}    ${xpath}
    Wait Until Keyword Succeeds    250sec    1sec    ${action}    ${xpath}

双击
    [Arguments]    ${xpath}
    Double Click Element    ${xpath}

当前页面应包含
    [Arguments]    ${text}
    Page Should Contain    ${text}

鼠标移到元素
    [Arguments]    ${xpath}
    Mouse Over    ${xpath}

执行javascript
    [Arguments]    ${script}
    sleep    2
    Execute Javascript    ${script}

关闭浏览器
    sleep    2
    Close Browser
